package com.common.sdk.exception;

import com.common.sdk.dto.ResultCode;

/**
 * @author : YU.TAN
 * @date : 2021/12/6 16:25
 */
public class BusinessException extends RuntimeException{

    private int exceptionCode;
    private String exception;

    public BusinessException(){

    }

    public BusinessException(String exception){
        this.exceptionCode= ResultCode.EXCEPTION.getCode();
        this.exception=exception;
    }

    public BusinessException(int exceptionCode,String exception){
        this.exceptionCode=exceptionCode;
        this.exception=exception;
    }


    public int getExceptionCode() {
        return exceptionCode;
    }

    public void setExceptionCode(int exceptionCode) {
        this.exceptionCode = exceptionCode;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }


}
